pub(crate) mod visualize;

mod list;
mod show;

use std::error::Error;

use crate::args::TableCommand;

/// Dispatches the table command.
pub fn dispatch(command: &TableCommand) -> Result<(), Box<dyn Error>> {
    match command {
        TableCommand::List(command) => list::list(command),
        TableCommand::Show(command) => show::show(command),
    }
}
